Visual Basic (Declaration) | |
---|---|
<ObsoleteAttribute("The checkMetadataType parameter is obsolete and is no longer needed. Use an overload without this parameter. ")> Public Overloads Shared Function GetAttribute(Of T As Attribute)( _ ByVal provider As ICustomAttributeProvider, _ ByVal checkMetadataType As Boolean _ ) As T |
Visual Basic (Usage) | ![]() |
---|---|
Dim provider As ICustomAttributeProvider Dim checkMetadataType As Boolean Dim value As T value = ReflectionFns.GetAttribute(Of T)(provider, checkMetadataType) |
C# | |
---|---|
[ObsoleteAttribute("The checkMetadataType parameter is obsolete and is no longer needed. Use an overload without this parameter. ")] public static T GetAttribute<T>( ICustomAttributeProvider provider, bool checkMetadataType ) where T: Attribute |
C++/CLI | |
---|---|
[ObsoleteAttribute("The checkMetadataType parameter is obsolete and is no longer needed. Use an overload without this parameter. ")] public: static T^ GetAttributegeneric<typename T> ( ICustomAttributeProvider^ provider, bool checkMetadataType ) where T: Attribute |
Parameters
- provider
- checkMetadataType
Type Parameters
- T
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family